<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
if(!defined("PHPEXCEL_ROOT")) {
    define("PHPEXCEL_ROOT", dirname(__FILE__) . "/../");
    require PHPEXCEL_ROOT . "PHPExcel/Autoloader.php";
}
class PHPExcel_Settings
{
    private static $libXmlLoaderOptions;
    private static $chartRenderers = ["jpgraph"];
    private static $pdfRenderers = ["tcPDF", "DomPDF", "mPDF"];
    private static $zipClass = "ZipArchive";
    private static $chartRendererName;
    private static $chartRendererPath;
    private static $pdfRendererName;
    private static $pdfRendererPath;
    const PCLZIP = "PHPExcel_Shared_ZipArchive";
    const ZIPARCHIVE = "ZipArchive";
    const CHART_RENDERER_JPGRAPH = "jpgraph";
    const PDF_RENDERER_TCPDF = "tcPDF";
    const PDF_RENDERER_DOMPDF = "DomPDF";
    const PDF_RENDERER_MPDF = "mPDF";
    public static function setZipClass($zipClass)
    {
        if($zipClass === "PHPExcel_Shared_ZipArchive" || $zipClass === "ZipArchive") {
            self::$zipClass = $zipClass;
            return true;
        }
        return false;
    }
    public static function getZipClass()
    {
        return self::$zipClass;
    }
    public static function getCacheStorageMethod()
    {
        return PHPExcel_CachedObjectStorageFactory::getCacheStorageMethod();
    }
    public static function getCacheStorageClass()
    {
        return PHPExcel_CachedObjectStorageFactory::getCacheStorageClass();
    }
    public static function setCacheStorageMethod($method = PHPExcel_CachedObjectStorageFactory::cache_in_memory, $arguments = [])
    {
        return PHPExcel_CachedObjectStorageFactory::initialize($method, $arguments);
    }
    public static function setLocale($locale = "en_us")
    {
        return PHPExcel_Calculation::getInstance()->setLocale($locale);
    }
    public static function setChartRenderer($libraryName, $libraryBaseDir)
    {
        if(!self::setChartRendererName($libraryName)) {
            return false;
        }
        return self::setChartRendererPath($libraryBaseDir);
    }
    public static function setChartRendererName($libraryName)
    {
        if(!in_array($libraryName, self::$chartRenderers)) {
            return false;
        }
        self::$chartRendererName = $libraryName;
        return true;
    }
    public static function setChartRendererPath($libraryBaseDir)
    {
        if(file_exists($libraryBaseDir) === false || is_readable($libraryBaseDir) === false) {
            return false;
        }
        self::$chartRendererPath = $libraryBaseDir;
        return true;
    }
    public static function getChartRendererName()
    {
        return self::$chartRendererName;
    }
    public static function getChartRendererPath()
    {
        return self::$chartRendererPath;
    }
    public static function setPdfRenderer($libraryName, $libraryBaseDir)
    {
        if(!self::setPdfRendererName($libraryName)) {
            return false;
        }
        return self::setPdfRendererPath($libraryBaseDir);
    }
    public static function setPdfRendererName($libraryName)
    {
        if(!in_array($libraryName, self::$pdfRenderers)) {
            return false;
        }
        self::$pdfRendererName = $libraryName;
        return true;
    }
    public static function setPdfRendererPath($libraryBaseDir)
    {
        if(file_exists($libraryBaseDir) === false || is_readable($libraryBaseDir) === false) {
            return false;
        }
        self::$pdfRendererPath = $libraryBaseDir;
        return true;
    }
    public static function getPdfRendererName()
    {
        return self::$pdfRendererName;
    }
    public static function getPdfRendererPath()
    {
        return self::$pdfRendererPath;
    }
    public static function setLibXmlLoaderOptions($options = NULL)
    {
        if(is_null($options) && defined("LIBXML_DTDLOAD")) {
            $options = LIBXML_DTDLOAD | LIBXML_DTDATTR;
        }
        if(0 <= version_compare(PHP_VERSION, "5.2.11")) {
            @libxml_disable_entity_loader((bool) $options);
        }
        self::$libXmlLoaderOptions = $options;
    }
    public static function getLibXmlLoaderOptions()
    {
        if(is_null(self::$libXmlLoaderOptions) && defined("LIBXML_DTDLOAD")) {
            self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR);
        } elseif(is_null(self::$libXmlLoaderOptions)) {
            self::$libXmlLoaderOptions = true;
        }
        if(0 <= version_compare(PHP_VERSION, "5.2.11")) {
            @libxml_disable_entity_loader((bool) self::$libXmlLoaderOptions);
        }
        return self::$libXmlLoaderOptions;
    }
}

?>